From 7da52f0ce5465262bbd809e979edd245668cd0b6 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Tue, 28 Mar 2023 22:45:44 -0700 Subject: show user's currency --- src/routes/(app)/send/invoice/[id]/+page.server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/routes/(app)/send/invoice/[id]/+page.server.js') diff --git a/src/routes/(app)/send/invoice/[id]/+page.server.js b/src/routes/(app)/send/invoice/[id]/+page.server.js index c9c2b222..50e72d94 100644 --- a/src/routes/(app)/send/invoice/[id]/+page.server.js +++ b/src/routes/(app)/send/invoice/[id]/+page.server.js @@ -7,6 +7,7 @@ export async function load({ params: { id }, parent, url }) { let { amount, address, + currency, hash, rate, prompt, @@ -17,7 +18,7 @@ export async function load({ params: { id }, parent, url }) { if (prompt && tip === null) throw redirect(307, `/${recipient.username}/invoice/${id}/tip`); if (recipient.username === user.username) throw error(500, { message: 'Cannot send to self' }); - return { amount, address, hash, tip, rate, payreq: text, recipient }; + return { amount, address, currency, hash, tip, rate, payreq: text, recipient }; } export const actions = { -- cgit v1.2.3